﻿<?php
session_start();
session_cache_limiter('nocache');
session_cache_limiter('private');
session_cache_limiter('public');

include "includeFiles.php";
if(empty($cateid)) $cateid=11010;
if(empty($_GET['uid'])) $_GET['uid']= 0;

if(!empty($_SESSION['user_name'])){
   $objBase->popup("您已经在登陆状态中，必须退出才能新注册！","myzhifen.php");
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">
<link href="css/reset.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<script src="./admin/js/checkSubmit.js"></script>
<script language="javascript">
	 function checkFrms(dom){
	if(!check_empty(dom.user_email,"邮箱不能为空！")) return false;
	if(!check_isemail(dom.user_email,"邮箱格式不正确！")) return false;
	if(!check_empty(dom.user_pws,"密码不能为空！")) return false;
	if(!check_empty(dom.user_repws,"请再次输入密码！")) return false;
	if(!check_even(dom.user_repws,dom.user_pws,"两次输入密码不一致！")) return false;
	if(!check_empty(dom.user_name,"姓名不能为空！")) return false;
	if(!check_empty(dom.user_tel,"手机不能为空！")) return false;
	if(!check_istel(dom.user_tel,"请输入正确的联系手机，只可以由数字和“/”和“-”组成！")) return false;
	if(!check_empty(dom.kaihao,"卡号不能为空！")) return false;
	if(!check_empty(dom.shenfenzheng,"身份证不能为空！")) return false;
	if(!check_empty(dom.yhaccout,"银行号不能为空！")) return false;
	if(!check_empty(dom.yancode,"验证码不能为空！")) return false;
		return true;
	 }

</script>
</head>
<body>
<?php include_once('header.php');?>

<div class="main mid">
  <br />
  <br />
  <form action="zhuce_ok.php" method="post" id="form1"  onsubmit="return checkFrms(this);">
     <input name="action" type="hidden" value="add" />
     <input name="jieshaorenid" type="hidden" value="<?php echo $_GET['uid'];?>" />
     
  <table width="80%" border="0" align="center" cellpadding="10" cellspacing="0" class="order_table_2">
           <tr>
             <td width="10%" align="left">电子邮箱：</td>
             <td width="67%" align="left"><input name="user_email" type="text" class="login_form_1" id="user_email" value="<?php echo $_SESSION['reg']['user_email'];?>" size="60" />
               *</td>
           </tr>
           <tr>
             <td align="left" valign="top">密码：</td>
             <td align="left"><input name="user_pws" type="password" class="login_form_1" id="user_pws" value="" />
               <span class="f_999">*密码请设6-10位数字或字母</span></td>
           </tr>
           <tr>
             <td align="left" valign="top">确认密码：</td>
             <td align="left"><input name="user_repws" type="password" class="login_form_1" id="user_repws" value="" />
               *</td>
           </tr>
          
           <tr>
             <td align="left" valign="top">真实姓名：</td>
             <td align="left"><input name="user_name" type="text" class="login_form_1" id="user_name" value="<?php echo $_SESSION['reg']['user_name'];?>" size="60" /></td>
           </tr>
		   
           <tr>
             <td align="left" valign="top">手机号码：</td>
             <td align="left"><input name="user_tel" type="text" class="login_form_1" id="user_tel" value="<?php echo $_SESSION['reg']['user_tel'];?>" size="60" /></td>
           </tr>
		   
		       <tr>
             <td align="left" valign="top">卡号：</td>
             <td align="left"><input name="kaihao" type="text" class="login_form_1" id="kaihao" value="<?php echo $_SESSION['reg']['kaihao'];?>" size="60" /></td>
           </tr>
		   
		       <tr>
             <td align="left" valign="top">身份证号码：</td>
             <td align="left"><input name="shenfenzheng" type="text" class="login_form_1" id="shenfenzheng" value="<?php echo $_SESSION['reg']['shenfenzheng'];?>" size="60" /></td>
           </tr>
		   
		    <tr>
             <td align="left" valign="top">银行账号：</td>
             <td align="left"><textarea name="yhaccout" cols="60" rows="5"  id="yhaccout"><?php echo $_SESSION['reg']['yhaccout'];?></textarea></td>
           </tr>
		   
		   
           <tr>
             <td align="left">验证码：</td>
             <td align="left"><table>
               <tr>
                 <td><input name="yancode" type="text"  id="yancode"  value="" size="10" /></td>
                 <td><a href="#" onclick="this.firstChild.src='./admin/seccode.php?update=' + Math.random();return false;"><img align="absmiddle" src="./admin/seccode.php?update=<?php echo time(); ?>" border="0" /></a></td>
                 <td>*</td>
               </tr>
             </table></td>
           </tr>
           <tr align="right">
             <td style="padding-top:20px; padding-bottom:20px;" align="left">&nbsp;</td>
             <td align="left" style="padding-top:20px; padding-bottom:20px;"><input type="submit" class="btn" value="我要注册"  name="Submit" border="0" />
             <strong></strong>&nbsp;&nbsp;&nbsp;&nbsp;<a href="login.php">我要登陆</a></td>
           </tr>
     </table>
  </form>
  
</div>
<?php include_once('footer.php');?>
</body>
</html>
